from base.util import *
from Quicker.qk_comple import *


class AutoComple(AutoComple):
    pass


if __name__ == '__main__':
    s = """
#gr, gb|||group by##sql
#ha, hv|||having##sql
#aa|||aa##anki
bb|||bb##python
#cc|||quicker:runaction:cc##
dd|||123##cc
d2|||4546##any
d2|||4546##正则
"""
    procName = "Quicker"
    # procName = "pycharm64"
    ac = AutoComple(s, procName)
    ac.run()
    print(*ac.excludeS, sep="\n")
    # t = Test("")python
    # for e in case_s:
    #     cc(t.filter_white_list(*e.split()[0:2], ""))
    # case_s = [
    #     "sql Code 1",
    #     "sql navicat 1",
    #     "anki anki 1",
    #     "aa bb 1",
    #     "anki navicat 0",
    # ]

    # case_s = [
    #     "quicker:runaction123 0",
    #     "123 1",
    # ]
    # for e in case_s:
    #     cc(t.filter_other(e.split()[0]))
